using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace BendyLines
{
    public class ScreenThumbnail : UserControl
    {
        private static int sAutoID = 9;
        
        public ScreenThumbnail()
        {
            this.Size = new Size(102, 98);
            this.BorderStyle = BorderStyle.FixedSingle;
            this.BackColor = Color.WhiteSmoke;
            this.mID = sAutoID++;
        }

        public int ID
        {
            get
            {
                return this.mID;
            }
            set
            {
                this.mID = value;
            }
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            Font fnt = new Font(FontFamily.GenericSerif, 26.0f);
            e.Graphics.DrawString(this.mID.ToString(), fnt, Brushes.Blue, 5, 5);
            base.OnPaint(e);
        }

        private int mID;
    }
}
